home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MATHS / PLPLOT / PLPLOT.ZIP / sys / os2 / pmserv / makefile next >
Encoding:
Makefile  |  1994-05-11  |  2.5 KB  |  93 lines

  1. #
  2. # Makefile for PLPLOT
  3. #
  4. # This makefile is intended to be used with Microsft NMAKE, as supplied with
  5. # MS C 6.0 Professional Development System (it's not actually very expensive).
  6. # It is currently set up to be run in an OS/2 session, and will build the
  7. # PLPLOT system of libraries, utilities and examples for execution under either
  8. # OS/2 native mode or under DOS (and the OS/2 DOS box).  
  9. #
  10. # To build the DOS version, you will need to modify the makefile in a couple
  11. # of places, in order to include the DOSVGA driver.  These changes are marked
  12. # in the makefile with comments starting with "# DOS".
  13. #
  14. # If you wish to actually execute the makefile from DOS, you might need to
  15. # change a few things.    (I always run in OS/2 sessions, even when building
  16. # for DOS).  In particular, the move commands in the links target would
  17. # need to be reformulated.
  18. #
  19. # Questions or problems, send (e)mail to:
  20. #    Geoffrey Furnish
  21. #    furnish@fusion.ph.utexas.edu
  22. #    Institute for Fusion Studies
  23. #    Department of Physics
  24. #    The University of Texas at Austin
  25. #    Austin, Texas    78712
  26.  
  27. PLDIR    = d:\plplot\ 
  28. PLLIBS    = .
  29. PLFONTS    = $(PLDIR)plfonts\ 
  30. PLFNT_DIR=\lib
  31. PLTMP    = $(PLDIR)tmp\ 
  32. PLLIBDIR = .
  33.  
  34. CC    = cl
  35. #CFLAGS    = /FPi87  /nologo /Od /Zi /AL
  36. CFLAGS    = /FPi87  /nologo /Ox /G2 /AL
  37. F77    = fl
  38. FFLAGS    = /FPi87  /nologo /Od /Zi /AL
  39.  
  40. # Rules
  41. .SUFFIXES:
  42. .SUFFIXES: .o .c
  43.  
  44. .c.o:
  45.     $(CC) -c $(CFLAGS) /Fo$*.o $*.c 
  46.  
  47. help:
  48.     @echo * Get down to the tmp dir, and then type "nmake links"
  49.     @echo * in order to obtain the PLPLOT files you need to 
  50.     @echo * continue this development. Then, "make plrender", etc.
  51.  
  52. # Links.  Get the files we need for this development.
  53.  
  54. links:
  55.     copy $(PLDIR)utils\plrender.c .
  56.     copy $(PLDIR)utils\getopt.c .
  57.     copy $(PLDIR)include\metadefs.h .
  58.     copy $(PLDIR)include\plplot.h .
  59.     copy $(PLDIR)include\chdr.h .
  60.     copy $(PLDIR)include\dispatch.h .
  61.     copy ..\os2pm.c .
  62.     copy ..\pmdefs.h .
  63.     copy ..\pmserv.c .
  64.     copy ..\pmserv.def .
  65.     copy ..\pmserv.rc .
  66.     copy ..\read.me .
  67.     
  68. # The os2pm driver.
  69.  
  70. os2pm.o : os2pm.c pmdefs.h
  71.  
  72. # The metafile renderer.
  73.  
  74. plrender:
  75.     cl $(CFLAGS) plrender.c getopt.c plplot.lib
  76.  
  77. # The Presentation Manager Server.
  78.  
  79. pmserv: pmserv.c pmdefs.h pmserv.res
  80.     cl -c -Alfw -G2sw -W3 /MT pmserv.c
  81.     link pmserv, /align:16, NUL, /nod llibcmt os2, pmserv;
  82.     rc pmserv.res
  83.  
  84. pmserv.res: pmserv.rc pmdefs.h
  85.     rc -r pmserv
  86.  
  87. # Make the distribution
  88.  
  89. dist:
  90.     -@del os2pmdst.zoo
  91.     zoo -add os2pmdst os2pm.c pmdefs.h pmserv.exe read.me
  92.     uue os2pmdst.zoo os2pmdst.uue
  93.